<div id="obtain_goods">
  <div class="box" style="width:90%;">
    <div class="close" onclick="$('#obtain_goods').remove();">关闭</div>
    <div class="obtain_goods">
      
      <table width="100%" cellpadding="2" cellspacing="0">
      <tbody>
        <tr class="th">
        <th>商品名称</th>
        <th>当前地区</th>
        <th>商品编号</th>
        <th>剩余库存</th>
        <th>预购数量</th>
        <th>限制数量</th>
        <th>剩余件数</th>
        <th>预购价格</th>
        <th>部分</th>
        <th>操作</th>
      </tr>
      {foreach from=$goods_list item=goods}
        <tr class="td">
            <input type="hidden" name="goods_id[]" value="{$goods.goods_id}">
            <input type="hidden" name="goods_name[]" value="{$goods.goods_name}">
            <input type="hidden" name="goods_sku[]" value="{$goods.goods_sku}">
            <input type="hidden" name="area_id[]" value="{$goods.area_id}">
          <td width="180">{$goods.goods_name}</td>
          <td width="180">{$goods.agency_name}</td>
          <td width="100">{$goods.goods_sku}</td>
          <td>{$goods.goods_number}</td>
          <td><input type="text" name="pre_order_num[]" class="goods_number" value="" style="width:100px;"/></td>
          <td><input type="text" name="limit_num[]" value="" style="width:80px;"/></td>
          <td><input type="text" name="buy_number[]" value="" style="width:80px;"></td>
          <td><input type="text" name="pre_order_price[]" value="" style="width:80px;"/></td>
          <td><input type="text" name="pre_order_part[]" value="" style="width:80px;"></td>
          <td onclick="$(this).parents('.td').remove();">删除</td>
        </tr>
      {/foreach}
    </tbody>
    </table>
    </div>
    <div class="add" onclick="select_goods();">添加</div>
  </div>
</div>